package com.ywgt.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dts_groupon")
@ApiModel(value="Groupon对象", description="")
public class Groupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联的订单ID")
    private Integer orderId;

    @ApiModelProperty(value = "参与的团购ID，仅当user_type不是1")
    private Integer grouponId;

    @ApiModelProperty(value = "团购规则ID，关联dts_groupon_rules表ID字段")
    private Integer rulesId;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "创建者ID")
    private Integer creatorUserId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date addTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "团购分享图片地址")
    private String shareUrl;

    @ApiModelProperty(value = "是否已经支付")
    private Boolean payed;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;


}
